<script setup>
defineOptions({
  name: "YFormModal",
});
defineProps({
  title: {
    type: String,
    default: '标题',
  },
})
</script>

<template>
  <a-modal class="y-form-modal" :open="true">
    <template #title>
      <div>
        <slot name="title">
          <span>{{ title }}</span>
        </slot>
      </div>
    </template>
    <slot name="default"></slot>
    <template #footer>
      <div>
        <slot name="footer">
          <div>123</div>
        </slot>
      </div>
    </template>
  </a-modal>
</template>
